package com.softoa.contorller;

import com.softoa.pojo.Publicaddress;
import com.softoa.service.IPublicAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("publicaddress")
public class PublicAddressController {
    @Autowired
    IPublicAddressService iPublicAddressService;

    @RequestMapping("insert")
    public int publicAddressInsert(Publicaddress publicaddress){
        return iPublicAddressService.publicAddressInsert(publicaddress);
    };
    @RequestMapping("update")
    public int publicAddressUpdate(Publicaddress publicaddress){
        return iPublicAddressService.publicAddressUpdate(publicaddress);
    };
    @RequestMapping("select")
    public java.util.List<Publicaddress> publicAddressSelect(Publicaddress rule){
        return iPublicAddressService.publicAddressSelect(rule);
    };

}
